import request from "@/utils/request";

// 查询社区列表
export function listEvaluation(query) {
  return request({
    url: "/appraise/listPage",
    method: "get",
    params: query,
  });
}

// 查询社区统计
export function getEvaluationStat(query) {
  return request({
    url: "/appraise/manageStatistics",
    method: "get",
    params: query,
  });
}

// 导出群众评价
export function exportEvaluation(data) {
  return request({
    url: "/appraise/exportAppraiseExcel",
    method: "post",
    data: data,
  });
}

// 删除群众评价
export function delEvaluation(Id) {
  return request({
    url: "/appraise/delete/" + Id,
    method: "delete",
  });
}

// 查询个人统计
export function userEvaluationStat(query) {
  return request({
    url: "/police-statistics/review",
    method: "get",
    params: query,
  });
}

// 查询个人统计排序图
export function userEvaluationStatSort(query) {
  return request({
    url: "/police-statistics/reviewCommunity",
    method: "get",
    params: query,
  });
}